home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12323 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1022 b 

  1. Path: usamrid.innovsoftd.com!news
  2. From: David Peterson <dpeterso@isd.net>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Passing array to DLL, Help
  5. Date: Tue, 19 Mar 1996 07:52:33 -0600
  6. Organization: Applied Systems, Inc.
  7. Message-ID: <314EBC21.FF2@isd.net>
  8. References: <4iihe0$kie@lastactionhero.rs.itd.umich.edu>
  9. NNTP-Posting-Host: pm2e-1-205.innovsoftd.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0GoldB2 (Win95; I)
  14.  
  15. Mark Anderson wrote:
  16. > I wrote a DLL, which has a function taking an array of float and
  17. > returning an array of float. The declaration I used is like:
  18. >         float* Func(float*, .......)
  19. > But every time I called it from the test program, the arguement array
  20. > seems to be corrupted( I used "step into" to debug) and it give General
  21. > Protection Fault. Anyone has any idea why this happens. Thanks in advance.
  22. > Email response preferred.
  23. > anderson@cedar.cic.net
  24.  
  25. try:
  26.  
  27.     float far * pascal _export Func (float far *, .....)
  28.  
  29.  
  30.